package com.example.mainstream.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;

/**
 * 商家类
 */
@Entity
public class Merchant implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id(autoincrement = true)
    private long id; // 商家ID
    private String username; // 商家用户名
    private String password; // 商家密码
    private String money; // 商家账户余额
    private String phone; // 商家联系电话
    private String headUrl; // 商家头像URL

    @Generated(hash = 1833401931)
    public Merchant(long id, String username, String password, String money,
            String phone, String headUrl) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.money = money;
        this.phone = phone;
        this.headUrl = headUrl;
    }

    @Generated(hash = 91174753)
    public Merchant() {
    }

    /**
     * 获取商家ID
     * @return 商家ID
     */
    public long getId() {
        return id;
    }

    /**
     * 设置商家ID
     * @param id 商家ID
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * 获取商家用户名
     * @return 商家用户名
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置商家用户名
     * @param username 商家用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取商家密码
     * @return 商家密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置商家密码
     * @param password 商家密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取商家账户余额
     * @return 商家账户余额
     */
    public String getMoney() {
        return money;
    }

    /**
     * 设置商家账户余额
     * @param money 商家账户余额
     */
    public void setMoney(String money) {
        this.money = money;
    }

    /**
     * 获取商家联系电话
     * @return 商家联系电话
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置商家联系电话
     * @param phone 商家联系电话
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取商家头像URL
     * @return 商家头像URL
     */
    public String getHeadUrl() {
        return headUrl;
    }

    /**
     * 设置商家头像URL
     * @param headUrl 商家头像URL
     */
    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }
}
